package com.gitee.cirnochat.chatai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.cirnochat.chatai.model.entity.AiChatMessage;

import java.util.List;

/**
* @author FlanChan
* @description 针对表【ai_chat_message】的数据库操作Service
* @createDate 2025-06-06 16:22:23
*/
public interface AiChatMessageService extends IService<AiChatMessage> {

    List<AiChatMessage> getMessagesBySessionId(Long sessionId, Long userId);

    void removeMessagesBySessionIdAsync(Long sessionId);

    void saveMessage(AiChatMessage message);

    void saveMessageAsync(AiChatMessage message);

    void updateMessageRecordIdAsync(Long messageId, String recordId);
}
